<include file="Admin:header" />

<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
 <script type="text/javascript">
  function clear_del()
  {
   if(confirm("确定要删除数据吗？"))
   {
	subform('__URL__/delall');
   }
  }
 </script>

<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">管理员列表</div></td>
      </tr>
    </table>

<div class="main">

    <div class="operate">
        <div class="left">
            <input type="button" onclick="window.open('__URL__/add','main')" target="main" class="btn_blue" value="添加管理员">
				<input class="btn_blue" type="button" onClick="return clear_del();" value="删除" />      
        </div>
        <if condition='ACTION_NAME eq "index"'>
        <div class="left_pad">
            <form method="post" action="__URL__/search">
                <input type="text" name="user_name" title="关键字" class="inp_default" value="<{$keyword}>">
                <input type="submit" class="btn_blue" value="查  询">
            </form>
        </div>
        </if>
    </div>
    <div class="list">    
    <form action="<{:U(GROUP_NAME.'/Member/delAll')}>" method="post" id="form_do" name="form_do">
        <table width="100%">
            <tr>
                <th><input  name="chkall" type="checkbox" id="chkall" onclick="selectall(this.form)"></th>
                <th>编号</th>
				<th>用户名</th>
                <th>邮箱</th>
                <th>真实姓名</th>
                
                <th>登录时间</th>
                <th>登录ip</th>
				<th>登录次数</th>
                <th>权限状态</th>
				<th>锁定</th>
                <th>操作</th>
            </tr>
			<empty name="vlist">
			<tr>
			<td colspan="11"><div align="center">本区域暂无数据显示...</div></td>
			</tr>
			<else /> 
			
			<volist name='vlist' id='v'>
            <tr>
                <td><input type="checkbox" name="id[]" value="<{$v.id}>" ></td>
                <td><{$v.id}></td>
				 <td><{$v.admin_name}></td>
                <td><{$v.admin_email}></td>
                <td><{$v.admin_myname}></td>
                
                <td><{$v.admin_date|date='Y-m-d H:i:s',###}></td>
                <td><{$v.admin_ip}></td>
				<td><{$v.admin_login}></td>
                <td><if condition="$v['admin_type']==1"><span style="color:#FF0000">普通管理员</span><else/><span style="color:#FF0000">超级管理员</span></if></td>
				
				<td><if condition="$v['admin_ok']==1"><span style="color:#FF0000">是</span><else/>否</if></td>
                <td>
					<a href="__URL__/listpass/id/<{$v.id}>">改密</a>
                    <a href="__URL__/edit/id/<{$v.id}>">改信</a>
                    <a href="__URL__/del/id/<{$v.id}>" onclick="return confirm('是否确定删除?')">删除</a>
				</td>
            </tr>
            </volist>
			</empty> 
			
        </table>
<div class="green-black"><{$page}>总共<{$count}>条记录</div>
    </form>
    </div>
</div>
<include file="Pubilc:copyright" />
</body>
</html>
